﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RealEstateAgencyDAL;

namespace RealEstateBrowser.ViewModels
{
    public class DistrictViewModel : ViewModelBase
    {
        private District district;
        

        public DistrictViewModel()
        {
        }

        public District District
        {
            get
            {
                return district;
            }
            set
            {
                if (this.district != value)
                {
                    district = value;
                    OnPropertyChanged("District");
                }
            }
        }

        public string DistrictName
        {
            get
            {
                return this.District.DistrictName;
            }
            set
            {
                if (this.district.DistrictName != value)
                {
                    this.district.DistrictName = value;
                    OnPropertyChanged("DistrictName");
                }
            }
        }
    }
}
